<% form_for @user do |u| %>
  <p>
    <%= u.label :username %>
    <%= u.text_field :username %>
  </p>
   
   <p>
    <%= u.label :mail %>
    <%= u.text_field :mail %>
  </p>
   
   <p>
    <%= u.label :password %>
    <%= u.password_field :password %>
  </p>
  
  <p>
    <%= u.label :password_confirmation, "Conferma password" %>
    <%= u.password_field :password_confirmation %>
  </p>
  
  <%= submit_tag "salva" %>
<% end %>